\hypertarget{class_yig_synth_graphic}{
\section{YigSynthGraphic Class Reference}
\label{class_yig_synth_graphic}\index{YigSynthGraphic@{YigSynthGraphic}}
}


{\ttfamily \#include $<$yigsynthgraphic.h$>$}

Inheritance diagram for YigSynthGraphic:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{class_yig_synth_graphic}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{class_yig_synth_graphic_ad314e34e100b312bc5ee9a5829e4ede4}{EllipseType} \{ {\bfseries AUDIO\_\-INPUT}, 
{\bfseries AUDIO\_\-OUTPUT}, 
{\bfseries MOD\_\-INPUT}
 \}
\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_yig_synth_graphic_a02b26ce61b84f104fe263a0041106418}{autoCableTriggered} (QString inputKey, QString outputKey, \hyperlink{class_yig_cable_graphic_af184598588b32de1439cc157858141db}{YigCableGraphic::CableOutputType} outputType)
\item 
void \hyperlink{class_yig_synth_graphic_abd10706ee2eed5ec9f308500f9d7b533}{param1Changed} (float value)
\item 
void \hyperlink{class_yig_synth_graphic_a435b133322b649c9d8cf230baeb803c8}{param2Changed} (float value)
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_yig_synth_graphic_af9cc100770cfb24df8311b856790fbcf}{YigSynthGraphic} (QString synthType, QString mapKey, const QPointF \&point)
\item 
\hyperlink{class_yig_synth_graphic_a92a60bcde62dc1ebf8f234960791d71f}{$\sim$YigSynthGraphic} ()
\item 
QBrush \hyperlink{class_yig_synth_graphic_a685eb1d88de51e8141ee027118d38ae3}{getBrush} ()
\item 
QString \hyperlink{class_yig_synth_graphic_ac22c9aac4eba7d395da66bdae4f3e643}{getMapKey} ()
\item 
void \hyperlink{class_yig_synth_graphic_a1ee63ecc00d43c4de76010a7188b1eb6}{setSynthType} (QString synthType)
\item 
QString \hyperlink{class_yig_synth_graphic_a0cea3959bedf20873b72f1c6ed4e7436}{getSynthType} ()
\item 
void \hyperlink{class_yig_synth_graphic_a0e5acb1801b78dce071b93197fd4d97d}{updatePos} (const QPointF \&point)
\item 
void \hyperlink{class_yig_synth_graphic_a63369284a567806c549566ebf383d690}{keyboardDelete} ()
\item 
void \hyperlink{class_yig_synth_graphic_a4ea7f9a2c98177cc4a220239e07ab99a}{itemClick} (QGraphicsItem $\ast$item)
\item 
void \hyperlink{class_yig_synth_graphic_a4feecc2c7acbd67be9f408280ac58057}{addAudioInputCable} (\hyperlink{class_yig_cable_graphic}{YigCableGraphic} $\ast$cable)
\item 
void \hyperlink{class_yig_synth_graphic_a5c955ed5d4ce31eb0e143cb0b9b5c8e3}{addAudioOutputCable} (\hyperlink{class_yig_cable_graphic}{YigCableGraphic} $\ast$cable)
\item 
void \hyperlink{class_yig_synth_graphic_a7bf70af05370f034125180b54a434d37}{addModInputCable} (\hyperlink{class_yig_cable_graphic}{YigCableGraphic} $\ast$cable)
\item 
bool \hyperlink{class_yig_synth_graphic_ab55c74dc0546d7cac03677317ed77798}{removeAudioInputCable} (QString cableMapKey)
\item 
bool \hyperlink{class_yig_synth_graphic_ac5974359ba47601b0b0d22a56d56b5f0}{removeAudioOutputCable} (QString cableMapKey)
\item 
bool \hyperlink{class_yig_synth_graphic_a68775ee6542ba9d900b3ad3475794047}{removeModInputCable} (QString cableMapKey)
\item 
bool \hyperlink{class_yig_synth_graphic_afd3fb469a776f988fddcc541d0bdea38}{removeCable} (QString cableMapKey)
\item 
void \hyperlink{class_yig_synth_graphic_afa82d2409a9c278b1b1baad1cd9482b7}{autoCable} ()
\item 
void \hyperlink{class_yig_synth_graphic_a440735db2e2bd6fb8b0a8e93dc843e87}{setParam1} (float value)
\item 
void \hyperlink{class_yig_synth_graphic_a64fce470795df4bf3814c9d3e860f56a}{setParam2} (float value)
\item 
void \hyperlink{class_yig_synth_graphic_a7d0370b0e660538c4cd6662fefb93689}{broadcastParams} ()
\item 
int \hyperlink{class_yig_synth_graphic_a520443d6501957664665660ca20f69f1}{type} () const 
\item 
void \hyperlink{class_yig_synth_graphic_a643769265800b68060e9903f58345baa}{paint} (QPainter $\ast$painter, const QStyleOptionGraphicsItem $\ast$option, QWidget $\ast$widget)
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
QList$<$ QString $>$ \hyperlink{class_yig_synth_graphic_a3182c5be0a10310467310469e4d25b52}{selectedSynthKeys}
\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static const int \hyperlink{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{ELLIPSE\_\-SIZE} = 51
\item 
static const int \hyperlink{class_yig_synth_graphic_a39a85cb3874995a7c8a4ce01de7065b1}{SMALL\_\-ELLIPSE\_\-SIZE} = 21
\item 
static const int \hyperlink{class_yig_synth_graphic_a8d2ecb02f8213cdf1bd5cd3ad0ae9ac9}{MOD\_\-ELLIPSE\_\-SIZE} = 25
\item 
static const int \hyperlink{class_yig_synth_graphic_afd90d822f6a917eb99c681ddcbdbd90f}{AUDIO\_\-ELLIPSE\_\-SIZE} = 40
\item 
static const int \hyperlink{class_yig_synth_graphic_ad3448bae90e3d32ac19a3b31cb92a855}{TRI\_\-OFFSET\_\-X} = 7
\item 
\hypertarget{class_yig_synth_graphic_aad82b46a96bf52db5a6b2e03e5f9917e}{
static const int {\bfseries TRI\_\-OFFSET\_\-Y} = 9}
\label{class_yig_synth_graphic_aad82b46a96bf52db5a6b2e03e5f9917e}

\item 
static const double \hyperlink{class_yig_synth_graphic_aa3cd69cf0c817302996b7b0dd4410f9a}{SQRT\_\-THREE} = 1.73205081
\item 
static const double \hyperlink{class_yig_synth_graphic_ab1ce2f66b72fa62aecec999f675803ea}{AUDIO\_\-INPUT\_\-X} = \hyperlink{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{ELLIPSE\_\-SIZE}/2
\item 
\hypertarget{class_yig_synth_graphic_a7a4ed6c959e3347326af042b221a0732}{
static const double {\bfseries AUDIO\_\-INPUT\_\-Y} = \hyperlink{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{ELLIPSE\_\-SIZE}/2}
\label{class_yig_synth_graphic_a7a4ed6c959e3347326af042b221a0732}

\item 
static const double \hyperlink{class_yig_synth_graphic_aad8dbd6eae94442c811a70761211a6b7}{AUDIO\_\-OUTPUT\_\-X} = \hyperlink{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{ELLIPSE\_\-SIZE}/2
\item 
\hypertarget{class_yig_synth_graphic_ad9e643b44d3bfe6a51224a90cb097ccd}{
static const double {\bfseries AUDIO\_\-OUTPUT\_\-Y} = \hyperlink{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{ELLIPSE\_\-SIZE}/2}
\label{class_yig_synth_graphic_ad9e643b44d3bfe6a51224a90cb097ccd}

\item 
static const double \hyperlink{class_yig_synth_graphic_a3f9397ee637d98c5e55740e2d8ef29b8}{MOD\_\-INPUT\_\-X} = \hyperlink{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{ELLIPSE\_\-SIZE}/2
\item 
\hypertarget{class_yig_synth_graphic_a22c948a801ed4c03370e7460dc43f1e1}{
static const double {\bfseries MOD\_\-INPUT\_\-Y} = \hyperlink{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{ELLIPSE\_\-SIZE}/2}
\label{class_yig_synth_graphic_a22c948a801ed4c03370e7460dc43f1e1}

\item 
static const int \hyperlink{class_yig_synth_graphic_a57ed89f5f3c509d7b892e2c138c68880}{MOD\_\-FIELD\_\-SIZE} = \hyperlink{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{ELLIPSE\_\-SIZE} $\ast$ 3
\item 
\hypertarget{class_yig_synth_graphic_a8dc5e7fb7dd2ba2cb3deec4abe0581f0}{
static const int {\bfseries MOD\_\-FIELD\_\-2\_\-SIZE} = \hyperlink{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{ELLIPSE\_\-SIZE} $\ast$ 2}
\label{class_yig_synth_graphic_a8dc5e7fb7dd2ba2cb3deec4abe0581f0}

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
QVariant \hyperlink{class_yig_synth_graphic_a7062695714c2554dd4e9f106aaad6367}{itemChange} (GraphicsItemChange change, const QVariant \&value)
\item 
void \hyperlink{class_yig_synth_graphic_a588be1ceb0b7d2c243c5adeef0a5030a}{hoverEnterEvent} (QGraphicsSceneHoverEvent $\ast$event)
\item 
void \hyperlink{class_yig_synth_graphic_ab91f3ca757272f85e538d22a618017a1}{hoverLeaveEvent} (QGraphicsSceneHoverEvent $\ast$event)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{class_yig_synth_graphic}{YigSynthGraphic} is the graphics representation of \hyperlink{class_yig_synth}{YigSynth} in the \hyperlink{class_yig_graphics_view}{YigGraphicsView} 

\subsection{Member Enumeration Documentation}
\hypertarget{class_yig_synth_graphic_ad314e34e100b312bc5ee9a5829e4ede4}{
\index{YigSynthGraphic@{YigSynthGraphic}!EllipseType@{EllipseType}}
\index{EllipseType@{EllipseType}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{EllipseType}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf YigSynthGraphic::EllipseType}}}
\label{class_yig_synth_graphic_ad314e34e100b312bc5ee9a5829e4ede4}
Defines the three different type of ellipses in the center, This may be phased out for all auto cables  AUDIO\_\-INPUT The top left ellipse  AUDIO\_\-OUTPUT The bottom ellipse  MOD\_\-INPUT The top right ellipse 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_yig_synth_graphic_af9cc100770cfb24df8311b856790fbcf}{
\index{YigSynthGraphic@{YigSynthGraphic}!YigSynthGraphic@{YigSynthGraphic}}
\index{YigSynthGraphic@{YigSynthGraphic}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{YigSynthGraphic}]{\setlength{\rightskip}{0pt plus 5cm}YigSynthGraphic::YigSynthGraphic (QString {\em synthType}, \/  QString {\em mapKey}, \/  const QPointF \& {\em point})}}
\label{class_yig_synth_graphic_af9cc100770cfb24df8311b856790fbcf}
\hyperlink{class_yig_synth_graphic}{YigSynthGraphic} constructor 
\begin{DoxyParams}{Parameters}
\item[{\em QString}]mapKey for the \hyperlink{class_yig_network_channel}{YigNetworkChannel} map \item[{\em const}]QPointF\& point Starting position of the EllipseItem \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a92a60bcde62dc1ebf8f234960791d71f}{
\index{YigSynthGraphic@{YigSynthGraphic}!$\sim$YigSynthGraphic@{$\sim$YigSynthGraphic}}
\index{$\sim$YigSynthGraphic@{$\sim$YigSynthGraphic}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{$\sim$YigSynthGraphic}]{\setlength{\rightskip}{0pt plus 5cm}YigSynthGraphic::$\sim$YigSynthGraphic ()}}
\label{class_yig_synth_graphic_a92a60bcde62dc1ebf8f234960791d71f}
\hyperlink{class_yig_synth_graphic}{YigSynthGraphic} deconstructor 

\subsection{Member Function Documentation}
\hypertarget{class_yig_synth_graphic_a4feecc2c7acbd67be9f408280ac58057}{
\index{YigSynthGraphic@{YigSynthGraphic}!addAudioInputCable@{addAudioInputCable}}
\index{addAudioInputCable@{addAudioInputCable}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{addAudioInputCable}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::addAudioInputCable ({\bf YigCableGraphic} $\ast$ {\em cable})}}
\label{class_yig_synth_graphic_a4feecc2c7acbd67be9f408280ac58057}
addAudioInputCable Add the pointer to the cable in this synthGraphic, which will facilitate movement updates 
\begin{DoxyParams}{Parameters}
\item[{\em YigCableGraphic$\ast$}]cable the \hyperlink{class_yig_network_channel}{YigNetworkChannel} map key for the cable \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a5c955ed5d4ce31eb0e143cb0b9b5c8e3}{
\index{YigSynthGraphic@{YigSynthGraphic}!addAudioOutputCable@{addAudioOutputCable}}
\index{addAudioOutputCable@{addAudioOutputCable}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{addAudioOutputCable}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::addAudioOutputCable ({\bf YigCableGraphic} $\ast$ {\em cable})}}
\label{class_yig_synth_graphic_a5c955ed5d4ce31eb0e143cb0b9b5c8e3}
addAudioOutputCable Add the pointer to the cable in this synthGraphic, which will facilitate movement updates 
\begin{DoxyParams}{Parameters}
\item[{\em YigCableGraphic$\ast$}]cable the \hyperlink{class_yig_network_channel}{YigNetworkChannel} map key for the cable \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a7bf70af05370f034125180b54a434d37}{
\index{YigSynthGraphic@{YigSynthGraphic}!addModInputCable@{addModInputCable}}
\index{addModInputCable@{addModInputCable}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{addModInputCable}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::addModInputCable ({\bf YigCableGraphic} $\ast$ {\em cable})}}
\label{class_yig_synth_graphic_a7bf70af05370f034125180b54a434d37}
addModInputCable Add the pointer to the cable in this synthGraphic, which will facilitate movement updates 
\begin{DoxyParams}{Parameters}
\item[{\em YigCableGraphic$\ast$}]cable the \hyperlink{class_yig_network_channel}{YigNetworkChannel} map key for the cable \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_afa82d2409a9c278b1b1baad1cd9482b7}{
\index{YigSynthGraphic@{YigSynthGraphic}!autoCable@{autoCable}}
\index{autoCable@{autoCable}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{autoCable}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::autoCable ()}}
\label{class_yig_synth_graphic_afa82d2409a9c278b1b1baad1cd9482b7}
Checks collisions and auto connects/disconnects the appropriate cables \hypertarget{class_yig_synth_graphic_a02b26ce61b84f104fe263a0041106418}{
\index{YigSynthGraphic@{YigSynthGraphic}!autoCableTriggered@{autoCableTriggered}}
\index{autoCableTriggered@{autoCableTriggered}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{autoCableTriggered}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::autoCableTriggered (QString {\em inputKey}, \/  QString {\em outputKey}, \/  {\bf YigCableGraphic::CableOutputType} {\em outputType})\hspace{0.3cm}{\ttfamily  \mbox{[}signal\mbox{]}}}}
\label{class_yig_synth_graphic_a02b26ce61b84f104fe263a0041106418}
emitted when the position of this ellipse has changed 
\begin{DoxyParams}{Parameters}
\item[{\em QString}]mapKey the map key for this synth graphic \item[{\em const}]QPointF\& point the new location of the synth graphic synthKeyboardDeleted emitted when the local user attempts to delete this object from the keyboard \item[{\em QString}]mapKey the map key for this synth graphic ellipseClicked emitted when the local user clicks on an audioOutput ellipse \item[{\em QString}]mapKey the map key for this synth graphic \item[{\em EllipseType}]the type of ellipse, either AUDIO\_\-INPUT, AUDIO\_\-OUTPUT, or MOD\_\-INPUT \item[{\em const}]QPointF\& point the CENTER of the output ellipse autoCableTriggered emitted for automatic cable creation from ellipse overlapping \item[{\em QString}]inputKey The synthGraphicMap key for the input synth \item[{\em QString}]outputKey The synthGraphicMap key for the output synth \item[{\em \hyperlink{class_yig_cable_graphic_af184598588b32de1439cc157858141db}{YigCableGraphic::CableOutputType}}]outputType The output type of the cable AUDIO or MODULATION \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a7d0370b0e660538c4cd6662fefb93689}{
\index{YigSynthGraphic@{YigSynthGraphic}!broadcastParams@{broadcastParams}}
\index{broadcastParams@{broadcastParams}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{broadcastParams}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::broadcastParams ()}}
\label{class_yig_synth_graphic_a7d0370b0e660538c4cd6662fefb93689}
broadcastParams cause this synth graphic to emit the paramChanged signal; \hypertarget{class_yig_synth_graphic_a685eb1d88de51e8141ee027118d38ae3}{
\index{YigSynthGraphic@{YigSynthGraphic}!getBrush@{getBrush}}
\index{getBrush@{getBrush}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{getBrush}]{\setlength{\rightskip}{0pt plus 5cm}QBrush YigSynthGraphic::getBrush ()}}
\label{class_yig_synth_graphic_a685eb1d88de51e8141ee027118d38ae3}
get the brush of this instance \begin{DoxyReturn}{Returns}
QBrush The brush that defines the color of this YigSynthGraphics 
\end{DoxyReturn}
\hypertarget{class_yig_synth_graphic_ac22c9aac4eba7d395da66bdae4f3e643}{
\index{YigSynthGraphic@{YigSynthGraphic}!getMapKey@{getMapKey}}
\index{getMapKey@{getMapKey}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{getMapKey}]{\setlength{\rightskip}{0pt plus 5cm}QString YigSynthGraphic::getMapKey ()}}
\label{class_yig_synth_graphic_ac22c9aac4eba7d395da66bdae4f3e643}
Get the key for this item to the \hyperlink{class_yig_network_channel}{YigNetworkChannel} map \begin{DoxyReturn}{Returns}
QString map key 
\end{DoxyReturn}
\hypertarget{class_yig_synth_graphic_a0cea3959bedf20873b72f1c6ed4e7436}{
\index{YigSynthGraphic@{YigSynthGraphic}!getSynthType@{getSynthType}}
\index{getSynthType@{getSynthType}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{getSynthType}]{\setlength{\rightskip}{0pt plus 5cm}QString YigSynthGraphic::getSynthType ()}}
\label{class_yig_synth_graphic_a0cea3959bedf20873b72f1c6ed4e7436}
getSynthType Get the type of synth (sin, filter, sample, etc... that this graphic represents \begin{DoxyReturn}{Returns}
QString synthType The name of the type of synth 
\end{DoxyReturn}
\hypertarget{class_yig_synth_graphic_a588be1ceb0b7d2c243c5adeef0a5030a}{
\index{YigSynthGraphic@{YigSynthGraphic}!hoverEnterEvent@{hoverEnterEvent}}
\index{hoverEnterEvent@{hoverEnterEvent}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{hoverEnterEvent}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::hoverEnterEvent (QGraphicsSceneHoverEvent $\ast$ {\em event})\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}
\label{class_yig_synth_graphic_a588be1ceb0b7d2c243c5adeef0a5030a}
hover used to highlight synth for grabbing \hypertarget{class_yig_synth_graphic_ab91f3ca757272f85e538d22a618017a1}{
\index{YigSynthGraphic@{YigSynthGraphic}!hoverLeaveEvent@{hoverLeaveEvent}}
\index{hoverLeaveEvent@{hoverLeaveEvent}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{hoverLeaveEvent}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::hoverLeaveEvent (QGraphicsSceneHoverEvent $\ast$ {\em event})\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}
\label{class_yig_synth_graphic_ab91f3ca757272f85e538d22a618017a1}
hover leave used to return it back to its original state \hypertarget{class_yig_synth_graphic_a7062695714c2554dd4e9f106aaad6367}{
\index{YigSynthGraphic@{YigSynthGraphic}!itemChange@{itemChange}}
\index{itemChange@{itemChange}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{itemChange}]{\setlength{\rightskip}{0pt plus 5cm}QVariant YigSynthGraphic::itemChange (GraphicsItemChange {\em change}, \/  const QVariant \& {\em value})\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}
\label{class_yig_synth_graphic_a7062695714c2554dd4e9f106aaad6367}
mouseMoveEvent reimplemented so we can add networking and update cable placement 
\begin{DoxyParams}{Parameters}
\item[{\em QGraphicsSceneMouseEvent}]$\ast$event the event that moves this item itemChange reimplemented so we can add networking and update cable placement \item[{\em GraphicsItemChange}]change \item[{\em const}]QVariant \&value \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a4ea7f9a2c98177cc4a220239e07ab99a}{
\index{YigSynthGraphic@{YigSynthGraphic}!itemClick@{itemClick}}
\index{itemClick@{itemClick}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{itemClick}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::itemClick (QGraphicsItem $\ast$ {\em item})}}
\label{class_yig_synth_graphic_a4ea7f9a2c98177cc4a220239e07ab99a}
itemClick When the user clicks on one of the small ellipses (audioInput,etc..) check the type and emit ellipseClicked 
\begin{DoxyParams}{Parameters}
\item[{\em QGraphicsItem$\ast$}]clicked item pointer to the ellipse that was clicked, checked against internal pointers to find the type of ellipse that was clicked, AUDIO\_\-INPUT, AUDIO\_\-OUTPUT, or MOD\_\-INPUT \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a63369284a567806c549566ebf383d690}{
\index{YigSynthGraphic@{YigSynthGraphic}!keyboardDelete@{keyboardDelete}}
\index{keyboardDelete@{keyboardDelete}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{keyboardDelete}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::keyboardDelete ()}}
\label{class_yig_synth_graphic_a63369284a567806c549566ebf383d690}
\hyperlink{class_yig_synth_graphic_a63369284a567806c549566ebf383d690}{keyboardDelete()}, used when a child \hyperlink{class_yig_ellipse_item}{YigEllipseItem} is keyboard cut/deleted \hypertarget{class_yig_synth_graphic_a643769265800b68060e9903f58345baa}{
\index{YigSynthGraphic@{YigSynthGraphic}!paint@{paint}}
\index{paint@{paint}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{paint}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::paint (QPainter $\ast$ {\em painter}, \/  const QStyleOptionGraphicsItem $\ast$ {\em option}, \/  QWidget $\ast$ {\em widget})}}
\label{class_yig_synth_graphic_a643769265800b68060e9903f58345baa}
overridden to allow for custom highlighting \hypertarget{class_yig_synth_graphic_abd10706ee2eed5ec9f308500f9d7b533}{
\index{YigSynthGraphic@{YigSynthGraphic}!param1Changed@{param1Changed}}
\index{param1Changed@{param1Changed}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{param1Changed}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::param1Changed (float {\em value})\hspace{0.3cm}{\ttfamily  \mbox{[}signal\mbox{]}}}}
\label{class_yig_synth_graphic_abd10706ee2eed5ec9f308500f9d7b533}
param1Change emitted when the user changes the outer modulation field 
\begin{DoxyParams}{Parameters}
\item[{\em float}]value The new value for the synth \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a435b133322b649c9d8cf230baeb803c8}{
\index{YigSynthGraphic@{YigSynthGraphic}!param2Changed@{param2Changed}}
\index{param2Changed@{param2Changed}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{param2Changed}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::param2Changed (float {\em value})\hspace{0.3cm}{\ttfamily  \mbox{[}signal\mbox{]}}}}
\label{class_yig_synth_graphic_a435b133322b649c9d8cf230baeb803c8}
param2Change emitted when the user changes the inner modulation field 
\begin{DoxyParams}{Parameters}
\item[{\em float}]value The new value for the synth \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_ab55c74dc0546d7cac03677317ed77798}{
\index{YigSynthGraphic@{YigSynthGraphic}!removeAudioInputCable@{removeAudioInputCable}}
\index{removeAudioInputCable@{removeAudioInputCable}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{removeAudioInputCable}]{\setlength{\rightskip}{0pt plus 5cm}bool YigSynthGraphic::removeAudioInputCable (QString {\em cableMapKey})}}
\label{class_yig_synth_graphic_ab55c74dc0546d7cac03677317ed77798}
removeAudioInputCable Remove the pointer to the cable in this synthGraphic 
\begin{DoxyParams}{Parameters}
\item[{\em QString}]cableMapKey the \hyperlink{class_yig_network_channel}{YigNetworkChannel} map key for the cable \end{DoxyParams}
\begin{DoxyReturn}{Returns}
bool Test for whether the cable was found, and subsequently deleted 
\end{DoxyReturn}
\hypertarget{class_yig_synth_graphic_ac5974359ba47601b0b0d22a56d56b5f0}{
\index{YigSynthGraphic@{YigSynthGraphic}!removeAudioOutputCable@{removeAudioOutputCable}}
\index{removeAudioOutputCable@{removeAudioOutputCable}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{removeAudioOutputCable}]{\setlength{\rightskip}{0pt plus 5cm}bool YigSynthGraphic::removeAudioOutputCable (QString {\em cableMapKey})}}
\label{class_yig_synth_graphic_ac5974359ba47601b0b0d22a56d56b5f0}
removeAudioOutputCable Remove the pointer to the cable in this synthGraphic 
\begin{DoxyParams}{Parameters}
\item[{\em QString}]cableMapKey the \hyperlink{class_yig_network_channel}{YigNetworkChannel} map key for the cable \end{DoxyParams}
\begin{DoxyReturn}{Returns}
bool Test for whether the cable was found, and subsequently deleted 
\end{DoxyReturn}
\hypertarget{class_yig_synth_graphic_afd3fb469a776f988fddcc541d0bdea38}{
\index{YigSynthGraphic@{YigSynthGraphic}!removeCable@{removeCable}}
\index{removeCable@{removeCable}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{removeCable}]{\setlength{\rightskip}{0pt plus 5cm}bool YigSynthGraphic::removeCable (QString {\em cableMapKey})}}
\label{class_yig_synth_graphic_afd3fb469a776f988fddcc541d0bdea38}
removeCable Remove the pointer to the cable in this synthGraphic, use this only if you don't know what port it connects to 
\begin{DoxyParams}{Parameters}
\item[{\em QString}]cableMapKey the \hyperlink{class_yig_network_channel}{YigNetworkChannel} map key for the cable \end{DoxyParams}
\begin{DoxyReturn}{Returns}
bool Test for whether the cable was found, and subsequently deleted 
\end{DoxyReturn}
\hypertarget{class_yig_synth_graphic_a68775ee6542ba9d900b3ad3475794047}{
\index{YigSynthGraphic@{YigSynthGraphic}!removeModInputCable@{removeModInputCable}}
\index{removeModInputCable@{removeModInputCable}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{removeModInputCable}]{\setlength{\rightskip}{0pt plus 5cm}bool YigSynthGraphic::removeModInputCable (QString {\em cableMapKey})}}
\label{class_yig_synth_graphic_a68775ee6542ba9d900b3ad3475794047}
removeModInputCable Remove the pointer to the cable in this synthGraphic 
\begin{DoxyParams}{Parameters}
\item[{\em QString}]cableMapKey the \hyperlink{class_yig_network_channel}{YigNetworkChannel} map key for the cable \end{DoxyParams}
\begin{DoxyReturn}{Returns}
bool Test for whether the cable was found, and subsequently deleted 
\end{DoxyReturn}
\hypertarget{class_yig_synth_graphic_a440735db2e2bd6fb8b0a8e93dc843e87}{
\index{YigSynthGraphic@{YigSynthGraphic}!setParam1@{setParam1}}
\index{setParam1@{setParam1}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{setParam1}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::setParam1 (float {\em value})}}
\label{class_yig_synth_graphic_a440735db2e2bd6fb8b0a8e93dc843e87}
setParam1 Set this YigSynth's first parameter 
\begin{DoxyParams}{Parameters}
\item[{\em float}]param1 The new value to which the first parameter is assigned \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a64fce470795df4bf3814c9d3e860f56a}{
\index{YigSynthGraphic@{YigSynthGraphic}!setParam2@{setParam2}}
\index{setParam2@{setParam2}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{setParam2}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::setParam2 (float {\em value})}}
\label{class_yig_synth_graphic_a64fce470795df4bf3814c9d3e860f56a}
setParam2 Set this YigSynth's second parameter 
\begin{DoxyParams}{Parameters}
\item[{\em float}]param2 The new value to which the second parameter is assigned \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a1ee63ecc00d43c4de76010a7188b1eb6}{
\index{YigSynthGraphic@{YigSynthGraphic}!setSynthType@{setSynthType}}
\index{setSynthType@{setSynthType}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{setSynthType}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::setSynthType (QString {\em synthType})}}
\label{class_yig_synth_graphic_a1ee63ecc00d43c4de76010a7188b1eb6}
setSynthType Set the type of synth (sin, filter, sample, etc... that this graphic represents 
\begin{DoxyParams}{Parameters}
\item[{\em QString}]synthType The name of the type of synth \end{DoxyParams}
\hypertarget{class_yig_synth_graphic_a520443d6501957664665660ca20f69f1}{
\index{YigSynthGraphic@{YigSynthGraphic}!type@{type}}
\index{type@{type}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}int YigSynthGraphic::type () const}}
\label{class_yig_synth_graphic_a520443d6501957664665660ca20f69f1}
overridden to give this class a unique type id \hypertarget{class_yig_synth_graphic_a0e5acb1801b78dce071b93197fd4d97d}{
\index{YigSynthGraphic@{YigSynthGraphic}!updatePos@{updatePos}}
\index{updatePos@{updatePos}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{updatePos}]{\setlength{\rightskip}{0pt plus 5cm}void YigSynthGraphic::updatePos (const QPointF \& {\em point})\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_yig_synth_graphic_a0e5acb1801b78dce071b93197fd4d97d}
update the position of this graphic, used to emit posChanged for networking 
\begin{DoxyParams}{Parameters}
\item[{\em QPointF\&}]point the new position \end{DoxyParams}


Implements \hyperlink{class_yig_base_graphic_a4e5a75636c5970312d6994d19d4df23b}{YigBaseGraphic}.



\subsection{Member Data Documentation}
\hypertarget{class_yig_synth_graphic_afd90d822f6a917eb99c681ddcbdbd90f}{
\index{YigSynthGraphic@{YigSynthGraphic}!AUDIO\_\-ELLIPSE\_\-SIZE@{AUDIO\_\-ELLIPSE\_\-SIZE}}
\index{AUDIO\_\-ELLIPSE\_\-SIZE@{AUDIO\_\-ELLIPSE\_\-SIZE}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{AUDIO\_\-ELLIPSE\_\-SIZE}]{\setlength{\rightskip}{0pt plus 5cm}const int {\bf YigSynthGraphic::AUDIO\_\-ELLIPSE\_\-SIZE} = 40\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_afd90d822f6a917eb99c681ddcbdbd90f}
size of the audio input ellipse \hypertarget{class_yig_synth_graphic_ab1ce2f66b72fa62aecec999f675803ea}{
\index{YigSynthGraphic@{YigSynthGraphic}!AUDIO\_\-INPUT\_\-X@{AUDIO\_\-INPUT\_\-X}}
\index{AUDIO\_\-INPUT\_\-X@{AUDIO\_\-INPUT\_\-X}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{AUDIO\_\-INPUT\_\-X}]{\setlength{\rightskip}{0pt plus 5cm}const double {\bf YigSynthGraphic::AUDIO\_\-INPUT\_\-X} = {\bf ELLIPSE\_\-SIZE}/2\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_ab1ce2f66b72fa62aecec999f675803ea}
the static point on the ellipse (relative) where the audio input goes \hypertarget{class_yig_synth_graphic_aad8dbd6eae94442c811a70761211a6b7}{
\index{YigSynthGraphic@{YigSynthGraphic}!AUDIO\_\-OUTPUT\_\-X@{AUDIO\_\-OUTPUT\_\-X}}
\index{AUDIO\_\-OUTPUT\_\-X@{AUDIO\_\-OUTPUT\_\-X}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{AUDIO\_\-OUTPUT\_\-X}]{\setlength{\rightskip}{0pt plus 5cm}const double {\bf YigSynthGraphic::AUDIO\_\-OUTPUT\_\-X} = {\bf ELLIPSE\_\-SIZE}/2\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_aad8dbd6eae94442c811a70761211a6b7}
the static point on the ellipse (relative) where the audio output goes \hypertarget{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}{
\index{YigSynthGraphic@{YigSynthGraphic}!ELLIPSE\_\-SIZE@{ELLIPSE\_\-SIZE}}
\index{ELLIPSE\_\-SIZE@{ELLIPSE\_\-SIZE}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{ELLIPSE\_\-SIZE}]{\setlength{\rightskip}{0pt plus 5cm}const int {\bf YigSynthGraphic::ELLIPSE\_\-SIZE} = 51\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_ae7f254db79ee7c7cff41232f96477562}
the static size of all the synth graphics \hypertarget{class_yig_synth_graphic_a8d2ecb02f8213cdf1bd5cd3ad0ae9ac9}{
\index{YigSynthGraphic@{YigSynthGraphic}!MOD\_\-ELLIPSE\_\-SIZE@{MOD\_\-ELLIPSE\_\-SIZE}}
\index{MOD\_\-ELLIPSE\_\-SIZE@{MOD\_\-ELLIPSE\_\-SIZE}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{MOD\_\-ELLIPSE\_\-SIZE}]{\setlength{\rightskip}{0pt plus 5cm}const int {\bf YigSynthGraphic::MOD\_\-ELLIPSE\_\-SIZE} = 25\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_a8d2ecb02f8213cdf1bd5cd3ad0ae9ac9}
size of the mod input ellipse \hypertarget{class_yig_synth_graphic_a57ed89f5f3c509d7b892e2c138c68880}{
\index{YigSynthGraphic@{YigSynthGraphic}!MOD\_\-FIELD\_\-SIZE@{MOD\_\-FIELD\_\-SIZE}}
\index{MOD\_\-FIELD\_\-SIZE@{MOD\_\-FIELD\_\-SIZE}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{MOD\_\-FIELD\_\-SIZE}]{\setlength{\rightskip}{0pt plus 5cm}const int {\bf YigSynthGraphic::MOD\_\-FIELD\_\-SIZE} = {\bf ELLIPSE\_\-SIZE} $\ast$ 3\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_a57ed89f5f3c509d7b892e2c138c68880}
Size of the mod field ellipses that form the outer parts of the synths \hypertarget{class_yig_synth_graphic_a3f9397ee637d98c5e55740e2d8ef29b8}{
\index{YigSynthGraphic@{YigSynthGraphic}!MOD\_\-INPUT\_\-X@{MOD\_\-INPUT\_\-X}}
\index{MOD\_\-INPUT\_\-X@{MOD\_\-INPUT\_\-X}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{MOD\_\-INPUT\_\-X}]{\setlength{\rightskip}{0pt plus 5cm}const double {\bf YigSynthGraphic::MOD\_\-INPUT\_\-X} = {\bf ELLIPSE\_\-SIZE}/2\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_a3f9397ee637d98c5e55740e2d8ef29b8}
the static point on the ellipse (relative) where the mod input goes \hypertarget{class_yig_synth_graphic_a3182c5be0a10310467310469e4d25b52}{
\index{YigSynthGraphic@{YigSynthGraphic}!selectedSynthKeys@{selectedSynthKeys}}
\index{selectedSynthKeys@{selectedSynthKeys}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{selectedSynthKeys}]{\setlength{\rightskip}{0pt plus 5cm}QList$<$QString$>$ {\bf YigSynthGraphic::selectedSynthKeys}}}
\label{class_yig_synth_graphic_a3182c5be0a10310467310469e4d25b52}
list of the network channel map keys of the current selected synths \hypertarget{class_yig_synth_graphic_a39a85cb3874995a7c8a4ce01de7065b1}{
\index{YigSynthGraphic@{YigSynthGraphic}!SMALL\_\-ELLIPSE\_\-SIZE@{SMALL\_\-ELLIPSE\_\-SIZE}}
\index{SMALL\_\-ELLIPSE\_\-SIZE@{SMALL\_\-ELLIPSE\_\-SIZE}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{SMALL\_\-ELLIPSE\_\-SIZE}]{\setlength{\rightskip}{0pt plus 5cm}const int {\bf YigSynthGraphic::SMALL\_\-ELLIPSE\_\-SIZE} = 21\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_a39a85cb3874995a7c8a4ce01de7065b1}
the static size of all the synth graphics \hypertarget{class_yig_synth_graphic_aa3cd69cf0c817302996b7b0dd4410f9a}{
\index{YigSynthGraphic@{YigSynthGraphic}!SQRT\_\-THREE@{SQRT\_\-THREE}}
\index{SQRT\_\-THREE@{SQRT\_\-THREE}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{SQRT\_\-THREE}]{\setlength{\rightskip}{0pt plus 5cm}const double {\bf YigSynthGraphic::SQRT\_\-THREE} = 1.73205081\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_aa3cd69cf0c817302996b7b0dd4410f9a}
used to place ellipses in equilateral triangle \hypertarget{class_yig_synth_graphic_ad3448bae90e3d32ac19a3b31cb92a855}{
\index{YigSynthGraphic@{YigSynthGraphic}!TRI\_\-OFFSET\_\-X@{TRI\_\-OFFSET\_\-X}}
\index{TRI\_\-OFFSET\_\-X@{TRI\_\-OFFSET\_\-X}!YigSynthGraphic@{YigSynthGraphic}}
\subsubsection[{TRI\_\-OFFSET\_\-X}]{\setlength{\rightskip}{0pt plus 5cm}const int {\bf YigSynthGraphic::TRI\_\-OFFSET\_\-X} = 7\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{class_yig_synth_graphic_ad3448bae90e3d32ac19a3b31cb92a855}
offset for the ellipse triangle to set it near the middle of the synth ellipse 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
graphics/yigsynthgraphic.h\item 
graphics/yigsynthgraphic.cpp\end{DoxyCompactItemize}
